Optimal. Leaf size=58 \[ \frac{(2 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}}+\frac{d x \sqrt{a+b x^2}}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0171933, antiderivative size = 58, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {388, 217, 206} \[ \frac{(2 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}}+\frac{d x \sqrt{a+b x^2}}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 388
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{c+d x^2}{\sqrt{a+b x^2}} \, dx &=\frac{d x \sqrt{a+b x^2}}{2 b}-\frac{(-2 b c+a d) \int \frac{1}{\sqrt{a+b x^2}} \, dx}{2 b}\\ &=\frac{d x \sqrt{a+b x^2}}{2 b}-\frac{(-2 b c+a d) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )}{2 b}\\ &=\frac{d x \sqrt{a+b x^2}}{2 b}+\frac{(2 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0203176, size = 57, normalized size = 0.98 \[ \frac{d x \sqrt{a+b x^2}}{2 b}-\frac{(a d-2 b c) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 62, normalized size = 1.1 \begin{align*}{\frac{dx}{2\,b}\sqrt{b{x}^{2}+a}}-{\frac{ad}{2}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{3}{2}}}}+{c\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){\frac{1}{\sqrt{b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.60352, size = 275, normalized size = 4.74 \begin{align*} \left [\frac{2 \, \sqrt{b x^{2} + a} b d x -{\left (2 \, b c - a d\right )} \sqrt{b} \log \left (-2 \, b x^{2} + 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right )}{4 \, b^{2}}, \frac{\sqrt{b x^{2} + a} b d x -{\left (2 \, b c - a d\right )} \sqrt{-b} \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right )}{2 \, b^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.50644, size = 126, normalized size = 2.17 \begin{align*} \frac{\sqrt{a} d x \sqrt{1 + \frac{b x^{2}}{a}}}{2 b} - \frac{a d \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{2 b^{\frac{3}{2}}} + c \left (\begin{cases} \frac{\sqrt{- \frac{a}{b}} \operatorname{asin}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b < 0 \\\frac{\sqrt{\frac{a}{b}} \operatorname{asinh}{\left (x \sqrt{\frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b > 0 \\\frac{\sqrt{- \frac{a}{b}} \operatorname{acosh}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{- a}} & \text{for}\: b > 0 \wedge a < 0 \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12063, size = 66, normalized size = 1.14 \begin{align*} \frac{\sqrt{b x^{2} + a} d x}{2 \, b} - \frac{{\left (2 \, b c - a d\right )} \log \left ({\left | -\sqrt{b} x + \sqrt{b x^{2} + a} \right |}\right )}{2 \, b^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]